package com.campus.service;

import com.campus.model.Student;
import com.campus.model.User;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface StudentService {
    boolean addStudentAndUser(Student student, User user);
    boolean batchAddStudentsWithUsersFromExcel(MultipartFile file) throws Exception;
    boolean updateStudentStatus(Integer studentId, String status);
    boolean batchUpdateStudentStatus(List<Integer> studentIds, String status);
    boolean editStudent(Integer studentId, Student updatedStudent);
    public boolean deleteStudent(Integer id);
    // 查询所有学生
    List<Student> getAllStudents();
}
